﻿using Configurations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Utilities;

namespace BussinessEntity
{
    public class Service
    {
        string _serviceID;
        string _serviceName;
        string _serviceCategory;
        int _quantity;
        long _unitPrice;

        public Service()
        {

        }

        public Service(string ID, string Name, string Category, int Quantity, long UnitPrice)
        {
            _serviceID = ID;
            _serviceName = Name;
            _serviceCategory = Category;
            _quantity = Quantity;
            _unitPrice = UnitPrice;
        }

        public string ServiceID
        {
            get
            {
                return _serviceID;
            }
            set
            {
                _serviceID = value;
            }
        }

        public string ServiceName
        {
            get
            {
                return _serviceName;
            }
            set
            {
                _serviceName = value;
            }
        }

        public string ServiceCategory
        {
            get
            {
                return _serviceCategory;
            }
            set
            {
                _serviceCategory = value;
            }
        }

        public long UnitPrice
        {
            get
            {
                return _unitPrice;
            }
            set
            {
                _unitPrice = value;
            }
        }

        public string UnitPriceVND
        {
            get
            {
                return DataUtil.ChangeMoneyToString(_unitPrice);
            }
        }


        public int Quantity
        {
            get
            {
                return _quantity;
            }
            set
            {
                _quantity = value;
            }
        }

        public string QuantityVirtual
        {
            get
            {
                if (ServiceCategory == ServiceState.ThayPhanCung)
                    return _quantity.ToString();
                return "Vô hạn";

            }
        }
    }
}
